package com.example.mapper;
import com.example.pojo.GsPy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * <p>
 * 物品申请表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-04-11
 */
@Mapper
@Repository
public interface GsPyMapper extends BaseMapper<GsPy> {

    /**
     * 查询物品申请
     * @param empName
     * @param deptName
     * @return
     */
    List<GsPy> selectGsPy(@Param("empName") String empName, @Param("deptName") String deptName);
    //查询当前登录者的资产
    List<GsPy> selectMyGsPt(@Param("userId") Integer userId,@Param("name") String name);
    //根据id修改申请信息状态
    int updateStatus(GsPy gsPy);

    List<GsPy> updateStatus(Integer gsId, Boolean approved);
}

